package org.openkoala.security.core.domain;

import org.junit.Before;
import org.mockito.Mockito;
import org.openkoala.koala.util.KoalaBaseSpringTestCase;
import org.springframework.test.context.transaction.TransactionConfiguration;

/**
 * 权限集成测试基类
 * 
 * @author luzhao
 * 
 */
@TransactionConfiguration(transactionManager = "transactionManager", defaultRollback = true)
public abstract class AbstractDomainIntegrationTestCase extends KoalaBaseSpringTestCase {
	
	protected PasswordService passwordService;
	
	@Before
	public void setUp() {
		passwordService = Mockito.mock(PasswordService.class);
		User.setPasswordService(passwordService);
	}
}
